Set Auto Subscribe
Type: POST
Description: /v4/finance/auto-subscribe
Enable or disable auto subscribe for a specific product.
Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| productId | long | true | Product ID |
| enabled | boolean | true | Enable or disable auto subscribe |
Request Example
Request
curl -X POST "https://sapi.xt.com/v4/finance/auto-subscribe" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json" \
-d '{
"productId": 1001,
"enabled": true
}'
Response Example
Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": true
}
Response Fields
| Field | Type | Description |
|---|---|---|
| result | boolean | Operation result |